﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

using Rison.Web.Common;
//using Rison.BusinessFacade.Entity.Biz;
using Rison.BusinessFacade.Facade.XT;
using Rison.BusinessFacade.Common;
using Rison.BusinessFacade.Helper;

namespace Rison.Web.admin
{
    public partial class DepartmentList : PageDataViewBase
    {
        protected void Page_Init(object sender, EventArgs e)
        {
            base.dataView = this.GridView1;
            base.baseFacade = new SysUserFacade();
            //base.hidCurrentPageIndex = this.hidCurPageIndex;
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                BindData();               
            }
        }

        protected override DataSet GetDataSource()
        {
            SysUserFacade facade = new SysUserFacade();

            return facade.GetDepartmentbyUser(CurrentLoginedUser.UserId);

        }
    }
}
